package com.gopay.common.domain.cbrmb.internationalcard.masapay;

import java.io.Serializable;

/**
 * 
 * @ClassName: MasaPayPayerAuthValidateResp
 * @Description: TODO
 * @author gd.cui
 * @date 2018年3月12日 上午10:32:59
 */
public class MasaPayPayerAuthValidateResp implements Serializable {
	/**
	 * @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)
	 */
	private static final long serialVersionUID = 1L;
	// 基本参数
	private String version = "1.0";
	private String charset = "utf-8";
	private String language = "cn";
	private String signType = "SHA256";
	private String errCode;
	private String errMsg;

	// 业务参数
	private String merchantOrderNo;
	private String enrolmentOrderNo;
	private String validationOrderNo;
	private String status;
	private String eci;
	private String cavv;
	private String cavvAlgorithm;
	private String commerceIndicator;
	private String ext1;
	private String ext2;
	private String remark;
	private String resultCode;
	private String signMsg;

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public String getCharset() {
		return charset;
	}

	public void setCharset(String charset) {
		this.charset = charset;
	}

	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}

	public String getSignType() {
		return signType;
	}

	public void setSignType(String signType) {
		this.signType = signType;
	}

	public String getErrCode() {
		return errCode;
	}

	public void setErrCode(String errCode) {
		this.errCode = errCode;
	}

	public String getErrMsg() {
		return errMsg;
	}

	public void setErrMsg(String errMsg) {
		this.errMsg = errMsg;
	}

	public String getMerchantOrderNo() {
		return merchantOrderNo;
	}

	public void setMerchantOrderNo(String merchantOrderNo) {
		this.merchantOrderNo = merchantOrderNo;
	}

	public String getEnrolmentOrderNo() {
		return enrolmentOrderNo;
	}

	public void setEnrolmentOrderNo(String enrolmentOrderNo) {
		this.enrolmentOrderNo = enrolmentOrderNo;
	}

	public String getValidationOrderNo() {
		return validationOrderNo;
	}

	public void setValidationOrderNo(String validationOrderNo) {
		this.validationOrderNo = validationOrderNo;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getEci() {
		return eci;
	}

	public void setEci(String eci) {
		this.eci = eci;
	}

	public String getCavv() {
		return cavv;
	}

	public void setCavv(String cavv) {
		this.cavv = cavv;
	}

	public String getCavvAlgorithm() {
		return cavvAlgorithm;
	}

	public void setCavvAlgorithm(String cavvAlgorithm) {
		this.cavvAlgorithm = cavvAlgorithm;
	}

	public String getCommerceIndicator() {
		return commerceIndicator;
	}

	public void setCommerceIndicator(String commerceIndicator) {
		this.commerceIndicator = commerceIndicator;
	}

	public String getExt1() {
		return ext1;
	}

	public void setExt1(String ext1) {
		this.ext1 = ext1;
	}

	public String getExt2() {
		return ext2;
	}

	public void setExt2(String ext2) {
		this.ext2 = ext2;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getResultCode() {
		return resultCode;
	}

	public void setResultCode(String resultCode) {
		this.resultCode = resultCode;
	}

	public String getSignMsg() {
		return signMsg;
	}

	public void setSignMsg(String signMsg) {
		this.signMsg = signMsg;
	}

	@Override
	public String toString() {
		return "MasaPayPayerAuthValidateResp [version=" + version + ", charset=" + charset + ", language=" + language
				+ ", signType=" + signType + ", errCode=" + errCode + ", errMsg=" + errMsg + ", merchantOrderNo="
				+ merchantOrderNo + ", enrolmentOrderNo=" + enrolmentOrderNo + ", validationOrderNo="
				+ validationOrderNo + ", status=" + status + ", eci=" + eci + ", cavv=" + cavv + ", cavvAlgorithm="
				+ cavvAlgorithm + ", commerceIndicator=" + commerceIndicator + ", ext1=" + ext1 + ", ext2=" + ext2
				+ ", remark=" + remark + ", resultCode=" + resultCode + ", signMsg=" + signMsg + "]";
	}

	public String signatureData(String key) {
		return "signType=" + signType + "&merchantOrderNo=" + merchantOrderNo + "&enrolmentOrderNo=" + enrolmentOrderNo
				+ "&validationOrderNo=" + validationOrderNo + "&status=" + status + "&eci=" + eci + "&cavv=" + cavv
				+ "&commerceIndicator=" + commerceIndicator + "&resultCode="
				+ resultCode + "&key=" + key;
	}
}
